﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.ComponentModel.DataAnnotations;

namespace ThinhTien.Models
{
    public class ProductViewModel : BaseViewModel
    {
        public Nullable<System.Guid> CategoryID { get; set; }

        [Display(Name = "Name:")]
        [Required(ErrorMessage = "Name is required")]
        public string Name { get; set; }


        public string Description { get; set; }
        public string DescriptionDetail { get; set; }
        
        public Nullable<decimal> Price { get; set; }
        public Nullable<int> Viewing { get; set; }
        public Nullable<int> Warranty { get; set; }
        public Nullable<bool> IsDeleted { get; set; }

         [Display(Name = "Images:")]
        public List<ImageViewModel> ProductImages { get; set; }

        public byte[] Photo { get; set; }

        public string ProductName { get; set; }
    }
}
